package com.woniuxy.exam.mapper;

import com.woniuxy.exam.entity.Manager;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

public interface ManagerMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Manager record);

    Manager selectByPrimaryKey(Integer id);

    List<Manager> selectAll();

    int updateByPrimaryKey(Manager record);

    @Select("select * from tb_manager where username = #{value} ")
    Manager selectManagerByName(String username);
}